package com.ruoyi.web.controller.lingshui.completion;

import java.util.ArrayList;
import java.util.List;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.supervise.domain.CompletionRecordTable;

/**
 * @ClassName: CompletionBossController
 * @Description: 竣工备案主管部门操作接口（后期会删除）
 * @Author wtj
 * @DateTime 2020-9-16 15:45:36
 */
@Controller
@RequestMapping("/completion/boss")
public class CompletionBossController extends BaseController {
	private String prefix = "lingshui/completion/boss";

	/**
	 * @Title: accept
	 * @Description: 跳转到主管部门受理页面
	 * @Author wtj
	 * @DateTime 2020-9-16 15:45:24
	 * @return
	 */
	@RequiresPermissions("completion:boss:view")
	@GetMapping("/accept")
	public String accept()
	{
	    return prefix + "/completionRecord";
	}
	
	/**
	 * @Title: first
	 * @Description: 跳转到主管部门初审页面
	 * @Author wtj
	 * @DateTime 2020-9-16 15:46:08
	 * @return
	 */
	@RequiresPermissions("completion:boss:view")
	@GetMapping("/first")
	public String first()
	{
	    return prefix + "/completionRecord";
	}
	
	/**
	 * @Title: twic
	 * @Description: 跳转到主管部门复审页面
	 * @Author wtj
	 * @DateTime 2020-9-16 15:46:25
	 * @return
	 */
	@RequiresPermissions("completion:boss:view")
	@GetMapping("/twic")
	public String twic()
	{
	    return prefix + "/completionRecord";
	}
	
	/**
	 * @Title: exam
	 * @Description: 跳转到主管部门审批页面
	 * @Author wtj
	 * @DateTime 2020-9-16 15:46:44
	 * @return
	 */
	@RequiresPermissions("completion:boss:view")
	@GetMapping("/exam")
	public String exam()
	{
	    return prefix + "/completionRecord";
	}
	
	/**
	 * @Title: list
	 * @Description: 获取列表数据
	 * @Author wtj
	 * @DateTime 2020-9-16 15:47:00
	 * @return
	 */
	@RequiresPermissions("completion:boss:view")
    @PostMapping("/list")
    @ResponseBody
    public TableDataInfo list()
    {
		List<CompletionRecordTable> completionRecordTableList=new ArrayList<CompletionRecordTable>();
        return getDataTable(completionRecordTableList);
    }
}
